-- GENERATED SPELL FOR [Hatecrest Serpent Guard] --


function spell0_5333(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(8058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5333', 8000, 1)
end

function Sorts_5333(pUnit, Event)
local choix_sorts_5333 = math.random(0, 0)
if choix_sorts_5333 == 0 then
pUnit:RegisterEvent('spell0_5333', 1, 1)
end
end

function mob5333_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5333', math.random(1500, 3000), 1)
end

function mob5333_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5333_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5333_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5333, 1, 'mob5333_Action')
RegisterUnitEvent(5333, 2, 'mob5333_Leave')
RegisterUnitEvent(5333, 3, 'mob5333_Kill')
RegisterUnitEvent(5333, 4, 'mob5333_Die')
